<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
<style>
/* 基础重置 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 登录容器 */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* 标题样式 */
.login-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

/* 表单元素样式 */
.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-container input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-container input[type="submit"]:hover {
    background-color: #2980b9;
}

/* 标签样式 */
.login-container label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
        margin: 20px;
    }
}
</style>
</head>
<body>
<div class="login-container">
    <h1>一个简单的登录页面</h1>
    <form action="{:Url('user/index/loginCheck')}" method="post">
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" placeholder="请输入用户名">
        
        <label for="password">密码</label>
        <input type="password" id="password" name="userpwd" placeholder="请输入密码">
        
        <input type="submit" value="登录">
    </form>
    <div class="register-link">
        还没有账号？<a href="{:Url('user/index/register')}">立即注册</a>
    </div>
</div>
</body>
</html>